Jackson@Rundeck部署
1.下载解压
1 2 3 4 5 6 7
| [root@bigdata001 ~] [hadoop@bigdata001 ~]$ cd app/ [hadoop@bigdata001 app]$ mkdir rundeck [hadoop@bigdata001 app]$ cd rundeck/ [hadoop@bigdata001 rundeck]$ wget https://dl.bintray.com/rundeck/rundeck-maven/r undeck-3.2.0-20191218.war [hadoop@bigdata001 app]$ java -jar rundeck-xxxx.war
|
1 2 3
| [hadoop@bigdata001 rundeck]$ vi vi/profile export RDECK_JVM="$RDECK_JVM -Xmx1024m -Xms1024m -XX:MaxMetaspaceSize=512m -server" [hadoop@bigdata001 rundeck]$
|
3.修改数据库为MySQL
1 2 3 4 5 6 7 8 9 10
| [hadoop@bigdata001 rundeck]$ cd server/config [hadoop@bigdata001 config]$ vi rundeck-config.properties
true
dataSource.url = jdbc:mysql://bigdata001/rundeck?autoReconnect=true dataSource.username = root dataSource.password = xxxxxx dataSource.driverClassName=com.mysql.jdbc.Driver
|
4.配置环境变量⽂件,⽣效
1 2 3 4
| [hadoop@bigdata001 rundeck]$ vi ~/.bashrc export RDECK_BASE=/home/hadoop/app/rundeck export PATH=$JAVA_HOME/bin:$SQOOP_HOME/bin:$ELASTICSEARCH_HOME/bin:$KIBANA_HOME/bin:$HBASE_HOME/bin:$ZOOKEEPER_HOME/bin:$PHOENIX_HOME/bin:$HIVE_HOME/bin:$HADOOP_HOME/bin:$HADOOP_HOME/sbin:$PATH [hadoop@bigdata001 rundeck]$ source ~/.bashrc
|
5.启动
1
| [hadoop@bigdata001 rundeck]$ rm -f $RDECK_BASE/var/run/rundeckd.pid && $RDECK_BASE/server/sbin/rundeckd start
|
6.查看状态
1 2
| [hadoop@bigdata001 rundeck]$ $RDECK_BASE/server/sbin/rundeckd status
|
http://bigdata001:4440
admin/admin